/**===========================渠道开关配置============================= */
export interface PortConf {
    /**appid*/
    appId: number;
    /**是否已经请求了 */
    isRequest?: boolean;
    /**请求结果true审核模式  false非审核 */
    res?: boolean;
    h5_baidu?: number
    h5_wechat?: number
    h5_bytedance?: number
    h5_oppo?: number
    h5_vivo?: number
    h5_qq?: number
    h5_kuaikan?: number
    android_google?: number
    android_vivo?: number
    android_233?: number
    android_4399?: number
    android_xiaomi?: number
    ios?: number
}
export interface VersionConf {
    h5_baidu?: string
    h5_wechat?: string
    h5_bytedance?: string
    h5_oppo?: string
    h5_vivo?: string
    h5_qq?: string
    h5_kuaikan?: string
    android_google?: string
    android_vivo?: string
    android_233?: string
    android_4399?: string
    android_xiaomi?: string
    ios?: string
}

export interface AdInfo {
    packageName: string;    //包名
    videoId: string;        //激励视频广告
    insertId: string;       //插屏广告
    bannerId: string;       //banner广告
    splashId: string;       //开屏广告
    nativeId?: string;       //原生广告
}
/**权重的类 */
export class WeightObject {
    id: number;
    weight: number;
}

export class ObjectValue {
    key: number;
    value: number;
}
export class ObjectWeightValue {
    id: number;
    num: number;
    weight: number;
}

export enum ABTestType {//AB测试
    /**无AB测试 */
    NO_AB,
    /**AB测试 */
    AB_Test,
    /**ABD测试 */
    ABD_Test,
    /**固定A */
    A_fixed,
    /**固定B */
    B_fixed,
    /**固定D */
    D_fixed,
}
export enum OrderLayer {
    /**主层 */
    main0 = -1,
    main = 0,
    main1 = 1,
    game = 50,
    /**top层 */
    top = 100,
    Load = 150,
    /**弹框 */
    pop = 200,
    /**弹框 */
    pop2 = 250,
    /**tip */
    tip = 300,
    Log = 400,
    guide = 888,
    touch = 999
}
/** 界面展示类型 */
export enum UIShowTypes {
    UIFullScreen,       // 全屏显示，全屏界面使用该选项可获得更高性能
    UIAddition,         // 叠加显示，性能较差
    UISingle,           // 单界面显示，只显示当前界面和背景界面，性能较好
};

/** 广告类型 */
export enum ADType {
    SKILL1="道具-提示",
    SKILL2="道具-敲碎",
    SKILL3="道具-刷新棋盘",
    ADDHP="道具-增加体力",
    ADDREITME="道具-增加刷新",
    DoublePOINT="双倍积分",
    REPLAYER = "复活",
};


/**===========================声音资源============================= */
/**声音资源 */
export interface Audiocfg {
    /**资源路径 */
    path: string;
    /**资源的assets bundle */
    bundle: string;
}
/** UI配置结构体 */
export interface UIConf {
    prefab: string;
    name: string;
    preventTouch?: boolean;
    zIndex: number;
    showTop?: boolean
    bundleName: string;
    /**是否忽略 */
    ignore?: boolean
    /**是否可以显示多个 */
    showMult?: boolean
}
/**===========================事件配置============================= */
export enum BaseEventName {
    Loading = "Loading",
    /**打开了一个ui */
    OpenUI = "openUi",
    /**关闭一个界面 */
    CloseUI = "CloseUI",
    blocktouch = "blocktouch",
    /** 更新章节事件 */
    updatePosEvent = "updatePosEvent",
    /**显示章节 */
    SHOW_CHAPTER_BTN = "SHOW_CHAPTER_BTN",
    /**隐藏章节事件 */
    CLOSE_CHAPTER_UI = "CLOSE_CHAPTER_UI",
    /**视频复活 */
    Video_Revival = "Video_Revival",
    /**重新挑战 */
    ReplayGame = "ReplayGame",
    /**下一关 */
    playNextLevel = "playNextLevel",
}




/**加载的进度 */
export enum LoadingProcess {
    /**开始加载 */
    StartLoading = 5,
    /**加载配置 */
    ExcelCfg = 10,
    /**加载用户数据 */
    PlayerCfg = 20,
    /**加载用户数据 */
    UICfg = 30,
    /**加载资源 */
    ResCfg = 40,
    /**加载音效 */
    AudioCfg = 60,
    /**加载其他 */
    OtherCfg = 80,
    /**加载结束 */
    EndLoading = 100,
}


export class Appcfg {
    /**切割段 */
    public static readonly splitCount: string = "|"
    /**切割数量 */
    public static readonly splitNum: string = ";"
    /**本地数据是否需要加密 */
    public static readonly ecrypt: boolean = false;

}